/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package de.jadehs.cosima.util;

import de.jadehs.cosima.*;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;

import de.jadehs.cosima.ANDExpression;
import de.jadehs.cosima.CharExpression;
import de.jadehs.cosima.Component;
import de.jadehs.cosima.Cosima;
import de.jadehs.cosima.CosimaPackage;
import de.jadehs.cosima.Expression;
import de.jadehs.cosima.Grammar;
import de.jadehs.cosima.Instruction;
import de.jadehs.cosima.KleeneExpression;
import de.jadehs.cosima.Loop;
import de.jadehs.cosima.Machine;
import de.jadehs.cosima.MoveTapeLeft;
import de.jadehs.cosima.MoveTapeRight;
import de.jadehs.cosima.MultiState;
import de.jadehs.cosima.ORExpression;
import de.jadehs.cosima.Program;
import de.jadehs.cosima.ReadFromTape;
import de.jadehs.cosima.Regex;
import de.jadehs.cosima.Stack;
import de.jadehs.cosima.State;
import de.jadehs.cosima.StatesRegister;
import de.jadehs.cosima.StringExpression;
import de.jadehs.cosima.Tape;
import de.jadehs.cosima.TapeInstruction;
import de.jadehs.cosima.Transition;
import de.jadehs.cosima.TransitionsTable;
import de.jadehs.cosima.Turing;
import de.jadehs.cosima.While;
import de.jadehs.cosima.WriteToTape;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see de.jadehs.cosima.CosimaPackage
 * @generated
 */
public class CosimaAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static CosimaPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public CosimaAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = CosimaPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CosimaSwitch<Adapter> modelSwitch =
		new CosimaSwitch<Adapter>() {
			@Override
			public Adapter caseCosima(Cosima object) {
				return createCosimaAdapter();
			}
			@Override
			public Adapter caseMachine(Machine object) {
				return createMachineAdapter();
			}
			@Override
			public Adapter caseComponent(Component object) {
				return createComponentAdapter();
			}
			@Override
			public Adapter caseTape(Tape object) {
				return createTapeAdapter();
			}
			@Override
			public Adapter caseStack(Stack object) {
				return createStackAdapter();
			}
			@Override
			public Adapter caseStatesRegister(StatesRegister object) {
				return createStatesRegisterAdapter();
			}
			@Override
			public Adapter caseState(State object) {
				return createStateAdapter();
			}
			@Override
			public Adapter caseTransitionsTable(TransitionsTable object) {
				return createTransitionsTableAdapter();
			}
			@Override
			public Adapter caseRegex(Regex object) {
				return createRegexAdapter();
			}
			@Override
			public Adapter caseGrammar(Grammar object) {
				return createGrammarAdapter();
			}
			@Override
			public Adapter caseLoop(Loop object) {
				return createLoopAdapter();
			}
			@Override
			public Adapter caseWhile(While object) {
				return createWhileAdapter();
			}
			@Override
			public Adapter caseProgram(Program object) {
				return createProgramAdapter();
			}
			@Override
			public Adapter caseTransition(Transition object) {
				return createTransitionAdapter();
			}
			@Override
			public Adapter caseTuring(Turing object) {
				return createTuringAdapter();
			}
			@Override
			public Adapter caseExpression(Expression object) {
				return createExpressionAdapter();
			}
			@Override
			public Adapter caseORExpression(ORExpression object) {
				return createORExpressionAdapter();
			}
			@Override
			public Adapter caseKleeneExpression(KleeneExpression object) {
				return createKleeneExpressionAdapter();
			}
			@Override
			public Adapter caseCharExpression(CharExpression object) {
				return createCharExpressionAdapter();
			}
			@Override
			public Adapter caseANDExpression(ANDExpression object) {
				return createANDExpressionAdapter();
			}
			@Override
			public Adapter caseStringExpression(StringExpression object) {
				return createStringExpressionAdapter();
			}
			@Override
			public Adapter caseMultiState(MultiState object) {
				return createMultiStateAdapter();
			}
			@Override
			public Adapter caseInstruction(Instruction object) {
				return createInstructionAdapter();
			}
			@Override
			public Adapter caseTapeInstruction(TapeInstruction object) {
				return createTapeInstructionAdapter();
			}
			@Override
			public Adapter caseReadFromTape(ReadFromTape object) {
				return createReadFromTapeAdapter();
			}
			@Override
			public Adapter caseWriteToTape(WriteToTape object) {
				return createWriteToTapeAdapter();
			}
			@Override
			public Adapter caseMoveTapeLeft(MoveTapeLeft object) {
				return createMoveTapeLeftAdapter();
			}
			@Override
			public Adapter caseMoveTapeRight(MoveTapeRight object) {
				return createMoveTapeRightAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Cosima <em>Cosima</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Cosima
	 * @generated
	 */
	public Adapter createCosimaAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Machine <em>Machine</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Machine
	 * @generated
	 */
	public Adapter createMachineAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Component <em>Component</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Component
	 * @generated
	 */
	public Adapter createComponentAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Tape <em>Tape</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Tape
	 * @generated
	 */
	public Adapter createTapeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Stack <em>Stack</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Stack
	 * @generated
	 */
	public Adapter createStackAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.StatesRegister <em>States Register</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.StatesRegister
	 * @generated
	 */
	public Adapter createStatesRegisterAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.State <em>State</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.State
	 * @generated
	 */
	public Adapter createStateAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.TransitionsTable <em>Transitions Table</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.TransitionsTable
	 * @generated
	 */
	public Adapter createTransitionsTableAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Regex <em>Regex</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Regex
	 * @generated
	 */
	public Adapter createRegexAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Grammar <em>Grammar</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Grammar
	 * @generated
	 */
	public Adapter createGrammarAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Loop <em>Loop</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Loop
	 * @generated
	 */
	public Adapter createLoopAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.While <em>While</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.While
	 * @generated
	 */
	public Adapter createWhileAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Program <em>Program</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Program
	 * @generated
	 */
	public Adapter createProgramAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Transition <em>Transition</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Transition
	 * @generated
	 */
	public Adapter createTransitionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Turing <em>Turing</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Turing
	 * @generated
	 */
	public Adapter createTuringAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Expression <em>Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Expression
	 * @generated
	 */
	public Adapter createExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.ORExpression <em>OR Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.ORExpression
	 * @generated
	 */
	public Adapter createORExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.KleeneExpression <em>Kleene Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.KleeneExpression
	 * @generated
	 */
	public Adapter createKleeneExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.CharExpression <em>Char Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.CharExpression
	 * @generated
	 */
	public Adapter createCharExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.ANDExpression <em>AND Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.ANDExpression
	 * @generated
	 */
	public Adapter createANDExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.StringExpression <em>String Expression</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.StringExpression
	 * @generated
	 */
	public Adapter createStringExpressionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.MultiState <em>Multi State</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.MultiState
	 * @generated
	 */
	public Adapter createMultiStateAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.Instruction <em>Instruction</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.Instruction
	 * @generated
	 */
	public Adapter createInstructionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.TapeInstruction <em>Tape Instruction</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.TapeInstruction
	 * @generated
	 */
	public Adapter createTapeInstructionAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.ReadFromTape <em>Read From Tape</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.ReadFromTape
	 * @generated
	 */
	public Adapter createReadFromTapeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.WriteToTape <em>Write To Tape</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.WriteToTape
	 * @generated
	 */
	public Adapter createWriteToTapeAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.MoveTapeLeft <em>Move Tape Left</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.MoveTapeLeft
	 * @generated
	 */
	public Adapter createMoveTapeLeftAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link de.jadehs.cosima.MoveTapeRight <em>Move Tape Right</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see de.jadehs.cosima.MoveTapeRight
	 * @generated
	 */
	public Adapter createMoveTapeRightAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //CosimaAdapterFactory
